<% if (locals.messages){ %>
<% messages.forEach(function (message) { %>
<li>
    <a href=""><span class="fa fa-heart"> <%=message.msg%></span></a>
</li>
<% }) %>
<% removeMessages() %>
<% } %>